// 单个职业详细统计层显提示JavaScript Document
	var timeControl = null;
	function hideInfo(){
		var info = document.getElementById('info');
		info.style.display = 'none';
	}
	function switchChart(ck, dv, txt)
	{
	   var dv = document.getElementById(dv);
	   var info = document.getElementById('info');
	   if(dv == null)
		   return;
		   
	   if(ck.checked){
		  dv.style.display = "";
		  info.innerHTML = '应聘者<span style="color:#ff8800">'+txt+'</span>分析已显示！';
		  info.style.display = '';
		  if(timeControl!=null){
			clearTimeout(timeControl);
			timeControl = null;
		  }
		  timeControl = setTimeout('hideInfo()',3000);
	   }else{
		  dv.style.display = "none";
		  info.innerHTML = '应聘者<span style="color:#ff8800">'+txt+'</span>分析已隐藏！';
		  info.style.display = '';
		  if(timeControl!=null){
			clearTimeout(timeControl);
			timeControl = null;
		  }
		  timeControl = setTimeout('hideInfo()',3000);
	   }
	   beforePrint();
	}
	
	function initChartDiv()
	{
	   var checkedCount = 0;
	   for (var i = 1; i < 9; i++){
		   var ck = document.getElementById("state" + i);
		   var dv = document.getElementById("dv" + i);
		   if(ck == null || dv == null)
			   continue;
			   
		   if(ck.checked){
			  dv.style.display = "";
			  checkedCount++;
		   }else{
			  dv.style.display = "none";
		   }
	   }
	
	   if(checkedCount < 1){
		   for (var i = 1; i < 5; i++){
			   var ck = document.getElementById("state" + i);
			   var dv = document.getElementById("dv" + i);
			   if(ck == null || dv == null)
				   continue;
				   
			   ck.checked = true;
			   dv.style.display = "";
		   }
	   }
	}